package com.mcflies.aotoPartsManager.service.impl;

import net.sf.json.JSONArray;

import org.apache.log4j.Logger;

import com.mcflies.aotoPartsManager.service.AutoPartsBaseService;
import com.mcflies.commons.commons.CommonFunction;

/**
 * 
 * AutoPartsBaseServiceImpl.java
 * 
 * @describe：汽车配件管理系统：：基础服务类
 * @Copyright(c) 2012-2024 Study,mcfly
 * @author mcfly_jun
 */
public class AutoPartsBaseServiceImpl implements AutoPartsBaseService {
	private Logger log = Logger.getLogger(AutoPartsBaseServiceImpl.class);

	@Override
	public JSONArray loadLeftMenuTreeJSON() throws Exception {
		try {
			JSONArray jsonArr = CommonFunction.getLeftMenuTree();
			return jsonArr;
		} catch (Exception e) {
			log.info("在[" + AutoPartsBaseServiceImpl.class.getName() + "]执行方法(loadLeftMenuTreeJSON)出现：："
					+ e.getMessage() + "异常");
			throw new RuntimeException("加载汽车配件管理系统左侧导航树出错");
		}
	}
}
